package DesignPatern.A11_装饰者模式.A01_基本模式;

/**
 * @Author: Du
 * @Date: 2021/7/30 10:52
 */
public class HighScoreDecorator extends Decorator
{
    public HighScoreDecorator(SchoolReport sr)
    {
        super(sr);
    }
    
    private void reportHighScore()
    {
        System.out.println("这次语文最高成绩75 数学78 自然80");
    }
    
    @Override
    public void report()
    {
        this.reportHighScore();
        super.report();
    }
}
